function greeter(person) {
    return "Hello," + person;
}
let user = "lwy";
document.body.innerHTML = greeter(user);

interface Person{
    firstName:string;
    lastName:string;
    age:number;
    prise:number;
}

class Student implements Person{
    fullName: string;
    constructor(public firstName,public middleInitial,public lastName,public age,public prise){
        this.fullName = firstName+""+middleInitial+""+lastName;
    }
}
function nameOut(person:Person) {
    return "Hello,"+person.firstName+""+person.lastName;
}

let user1 = new Student("tom","M.","User",18,5000);

document.body.innerHTML=nameOut(user1);
